package com.ocom.common.entity.company;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ocom.common.entity.base.EntityBase;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "company_info")
public class EntityCompanyInfo extends EntityBase implements Serializable {


    private static final long serialVersionUID = 5968276608101445115L;
    @TableId(value = "com_id", type = IdType.AUTO)
    private Long comId;
    private String comName;
    private Integer isAgent;
    private Long agentId;
    private Integer comType;
    private Integer comStatus;
    private String province;
    private String city;
    private String district;
    private String contPerson;
    private String contPhone;
    private String contEmail;
    private String contAddress;
    private String remark;
    private String color;
    private String logoUrl="";
    private Integer mjStatus;
    private Integer xfStatus;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endTime;
    private Long createUserid;
    private Integer commType;
    private Long commNums;

    private Integer dailySummary;

    @TableField(exist = false)
    private String commKey;

    //扩展 商户Id和名称
    @TableField(exist = false)
    private Long merchId;
    @TableField(exist = false)
    private Long role;
    @TableField(exist = false)
    private String merchName;

    private Integer payCenter;
}
